package com.org.gundutubruk;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class ScreenReceiver extends BroadcastReceiver {
	public static boolean wasScreenOn = true;

	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {//kalo screen mati
			wasScreenOn = false;
		}else{//kalo screen hidup
			wasScreenOn = true;
		}
	}	
}
